org.eclipse.vtp.desktop.core.actions.util
Class InternalActionItem

java.lang.Object
  extended by org.eclipse.vtp.desktop.core.actions.util.InternalActionItem
All Implemented Interfaces:
IProvisioningActionItem
Direct Known Subclasses:
InternalAction, InternalActionSet

public abstract class InternalActionItem
extends java.lang.Object
implements IProvisioningActionItem

The abstract base class for all implementations of IProvisioningActionItem. It provides most of the default behavior of that interface.

Version:
2.0
Author:
Trip

Field Summary
protected  java.lang.String pluginNameSpace
          The bundle symbolic name which contains the filter and action implementations.
 
Constructor Summary
InternalActionItem(java.lang.String containerId, java.lang.String name)
          Creates a new InternalActionItem with the given container and name.
 
Method Summary
 int getAvailability()
          Returns the current state of this action.
 java.lang.String getContainerId()
           
 IProvisioningModelSelection getCurrentSelection()
          Returns the last known selection provided to this action.
 java.lang.String getName()
           
 java.lang.String getToolTip()
           
 void processSelectionChange(IProvisioningModelSelection selection)
          Notifies the action (and filter) that the selection has changed.
 void setFilterClass(java.lang.String filterClassString)
          Provides the fully qualified name of the implementation class of this action's filter.
 void setName(java.lang.String name)
          Sets the name of this action to the given string.
 void setPluginNameSpace(java.lang.String pluginNameSpace)
          Assigns the bundle symbolic name that contains the implementations for this action and its filter.
 void setTargetClass(java.lang.String classString)
          Provides the fully qualified name of the implementation class of this action.
 void setToolTip(java.lang.String toolTip)
          Sets the tooltip text of this action to the given string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pluginNameSpace

protected java.lang.String pluginNameSpace
The bundle symbolic name which contains the filter and action implementations.

Constructor Detail

InternalActionItem

public InternalActionItem(java.lang.String containerId,
                          java.lang.String name)
Creates a new InternalActionItem with the given container and name.

Parameters:
containerId - The identifier of this action's container
name - The name of this action
Method Detail

setPluginNameSpace

public void setPluginNameSpace(java.lang.String pluginNameSpace)
Assigns the bundle symbolic name that contains the implementations for this action and its filter.

Parameters:
pluginNameSpace - The bundle symbolic name

getName

public java.lang.String getName()
Specified by:
getName in interface IProvisioningActionItem
Returns:
The name of this item

getContainerId

public java.lang.String getContainerId()
Returns:
The identifier of this action's container

getToolTip

public java.lang.String getToolTip()
Specified by:
getToolTip in interface IProvisioningActionItem
Returns:
The tooltip text for this item

setName

public void setName(java.lang.String name)
Sets the name of this action to the given string.

Parameters:
name - The new name of this action

setToolTip

public void setToolTip(java.lang.String toolTip)
Sets the tooltip text of this action to the given string.

Parameters:
toolTip - The new tooltip text

setTargetClass

public void setTargetClass(java.lang.String classString)
Provides the fully qualified name of the implementation class of this action.

Parameters:
classString - The fully qualified class name

setFilterClass

public void setFilterClass(java.lang.String filterClassString)
Provides the fully qualified name of the implementation class of this action's filter.

Parameters:
filterClassString - The fully qualified class name

getCurrentSelection

public IProvisioningModelSelection getCurrentSelection()
Returns the last known selection provided to this action.

Returns:
The last known selection

processSelectionChange

public void processSelectionChange(IProvisioningModelSelection selection)
Notifies the action (and filter) that the selection has changed. This may cause the state of the action to change.

Parameters:
selection - The new user selection

getAvailability

public int getAvailability()
Returns the current state of this action.

Returns:
The current state